import torch
import numpy as np



a1 = torch.from_numpy(np.array([0.9, 0.1, 0.5, 0.4]))
a2 = torch.from_numpy(np.array([0.3, 0.2, 0.1, 0.5]))
da = torch.norm(a1 - a2)
print(da, '\n', da.max().item())


t1 = torch.tensor([1, 0, 0, 0, 0])


